//window.onload = function() {
	var oTop = document.getElementById("to_top");
	oTop.onclick = function() {
		document.documentElement.scrollTop = document.body.scrollTop = 0+"px";
	}
	window.onscroll = function() {
		var tops = document.documentElement.scrollTop || document.body.scrollTop;
		if (tops > 300) {
			oTop.style.display = "block";
		} else {
			oTop.style.display = "none";
		}
	}
//}